import dayjs from 'dayjs';
import { downLoad, request } from '../../../request';

/** 导出 */
export function downLoadData(data: any) {
  return downLoad({
    url: '/mes/cutting-sheet-materials-record/export',
    method: 'POST',
    data,
    fileName: `开料板材使用记录导出${dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`
  });
}

/** 删除 */
export function deleteData(data: any) {
  return request({
    url: '/mes/cutting-sheet-materials-record/delete-batch',
    method: 'post',
    data
  });
}
